/*
-------------------------------------------------

	Font.h

	Dmitriy Kuzmenko (Dgut)

-------------------------------------------------
*/

#ifndef __AUTUMN_FONT_H__
#define __AUTUMN_FONT_H__

namespace Autumn
{

class Texture;

class Font
{
public:
	static const float	SIZE;

	enum HorizontalAlign
	{
		LEFT,
		CENTER,
		RIGHT,
	};

	enum VerticalAlign
	{
		BOTTOM,
		MIDDLE,
		TOP,
	};
private:
	Texture *			texture;
	short				widths[ 256 ];
public:
						Font( const char * texture, const char * widths );
						~Font( void );

	void				Print( HorizontalAlign ha, VerticalAlign va, float x, float y, float scale, const char * text ) const;

	const float			StrLen( const char * text, float scale = 1.f ) const;
};

}	// namespace Autumn

#endif	// !!! __AUTUMN_FONT_H__ !!!